/**
 * File: EstimateExpectedCoverage.java
 * Created by: mhaimel
 * Created on: Nov 30, 2009
 * CVS:  $Id: EstimateExpectedCoverage.java,v 1.1 2009/12/07 09:45:36 mhaimel Exp $
 */
package uk.ac.ebi.curtain.exec;

import java.io.File;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import uk.ac.ebi.velvet.processor.StatisticsInfo;
import uk.ac.ebi.velvet.processor.StatisticsProcessor;
import uk.co.flamingpenguin.jewel.cli.ArgumentValidationException;
import uk.co.flamingpenguin.jewel.cli.CliFactory;
import uk.co.flamingpenguin.jewel.cli.Unparsed;

/**
 * @author mhaimel
 *
 */
public class EstimateExpectedCoverage {

	/**
	 * @param args
	 * @throws ArgumentValidationException 
	 */
	public static void main(String[] args) throws ArgumentValidationException {
		ExpectedCoverageScope param = CliFactory.parseArguments(ExpectedCoverageScope.class, args);
		if(param.isFile()){
			StatisticsProcessor stat = new StatisticsProcessor(param.getFile());
			StatisticsInfo info = stat.process();
			System.out.println("Exp-Cov="+info.getExpCov()+"; cutoff="+info.getCutoffCov());
		}
	}
	
	private static interface ExpectedCoverageScope {
		
		@Unparsed
		public File getFile();
		
		public boolean isFile();
		
	}
}
